<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Less (Unix)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Less_(Unix)"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.pygments.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Less_Unix rootpage-Less_Unix skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main">less (Unix)</span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1295905060">
/* start https://en.wikipedia.org/ */
.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}
/* end https://en.wikipedia.org/ */
</style><table class="infobox vevent"><tbody><tr><th colspan="2" class="infobox-above summary">less</th></tr><tr><td colspan="2" class="infobox-image logo"><div class="infobox-caption"><code>less</code> output in an <a href="Xterm" title="Xterm">x-terminal</a></div></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Programmer" title="Programmer">Developer(s)</a></th><td class="infobox-data">Mark Nudelman</td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Initial release</th><td class="infobox-data">1984<span style="display:none"> (<span class="bday dtstart published updated">1984</span>)</span><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></td></tr><tr style="display: none;"><td colspan="2" class="infobox-full-data"></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Software_release_life_cycle" title="Software release life cycle">Stable release</a></th><td class="infobox-data"><div style="margin:0px;">679<sup id="cite_ref-wikidata-5ceee3d92f809f3fdf390dc253b0ffdb676639f1-v20_2-0" class="reference"><a href="#cite_note-wikidata-5ceee3d92f809f3fdf390dc253b0ffdb676639f1-v20-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
/ 19 June 2025<span style="display:none"> (<span class="bday dtstart published updated">19 June 2025</span>)</span></div></td></tr><tr style="display:none"><td colspan="2">
</td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Repository_(version_control)" title="Repository (version control)">Repository</a></th><td class="infobox-data"><span class="url"><a rel="nofollow" class="external text" href="https://github.com/gwsw/less">github<wbr>.com<wbr>/gwsw<wbr>/less</a></span></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Written in</th><td class="infobox-data"><a href="C_(programming_language)" title="C (programming language)">C</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Operating_system" title="Operating system">Operating system</a></th><td class="infobox-data"><a href="Cross-platform" class="mw-redirect" title="Cross-platform">Cross-platform</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Software_categories#Categorization_approaches" title="Software categories">Type</a></th><td class="infobox-data"><a href="System_utility" class="mw-redirect" title="System utility">System utility</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Software_license" title="Software license">License</a></th><td class="infobox-data"><a href="Multi-licensing" title="Multi-licensing">Dual-licensed</a> under <a href="GNU_Project" title="GNU Project">GNU</a> <a href="GNU_General_Public_License#Version_3" title="GNU General Public License">GPLv3</a> and a custom <a href="BSD_licenses#2-clause" title="BSD licenses">BSD-style</a> license</td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Website</th><td class="infobox-data"><span class="url"><a rel="nofollow" class="external text" href="https://www.greenwoodsoftware.com/less/">www<wbr>.greenwoodsoftware<wbr>.com<wbr>/less<wbr>/</a></span></td></tr></tbody></table>
<p><b><code>less</code></b> is a <a href="Terminal_pager" title="Terminal pager">terminal pager</a> <a href="Computer_program" title="Computer program">program</a> on <a href="Unix" title="Unix">Unix</a>, <a href="Microsoft_Windows" title="Microsoft Windows">Windows</a>, and <a href="Unix-like" title="Unix-like">Unix-like</a> systems used to view (but not change) the contents of a <a href="Text_file" title="Text file">text file</a> one screen at a time. It is similar to <style data-mw-deduplicate="TemplateStyles:r886049734">
/* start https://en.wikipedia.org/ */
.mw-parser-output .monospaced{font-family:monospace,monospace}
/* end https://en.wikipedia.org/ */
</style><span class="monospaced"><a href="More_(command)" title="More (command)">more</a></span>, but has the extended capability of allowing both forward and backward navigation through the file. Unlike most Unix text editors/viewers, <span class="monospaced">less</span> does not need to read the entire file before starting, allowing for immediate viewing regardless of file size.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="History">History</h2></div>
<p>Mark Nudelman initially wrote <code>less</code> during 1983–85, in the need of a version of <code><a href="More_(command)" title="More (command)">more</a></code> able to do backward scrolling of the displayed text. The name came from the joke of doing "backwards more." Originally, <code>less</code> was developed for Unix, but it has been ported to a number of other operating systems, including <a href="MS-DOS" title="MS-DOS">MS-DOS</a>, <a href="Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a>, <a href="OS/2" title="OS/2">OS/2</a>, and <a href="OS-9" title="OS-9">OS-9</a>, as well as <a href="Unix-like" title="Unix-like">Unix-like</a> systems such as <a href="Linux" title="Linux">Linux</a>.<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> It is still maintained today by Nudelman.
</p><p>To help remember the difference between <code>less</code> and <code>more</code>, a common joke is to say, "<span class="monospaced">less > more</span>," implying that <code>less</code> has greater functionality than <span class="monospaced">more</span>. A similar saying is that "<code>less</code> is <code>more</code>, more or less".
</p>
<div class="mw-heading mw-heading2"><h2 id="Usage">Usage</h2></div>
<p><span class="monospaced">less</span> can be invoked with options to change its behaviour, for example, the number of lines to display on the screen. A few options vary depending on the operating system. While <span class="monospaced">less</span> is displaying the file, various commands can be used to navigate through the file. These commands are based on those used by both <span class="monospaced">more</span> and <span class="monospaced"><a href="Vi_(text_editor)" title="Vi (text editor)">vi</a></span>. It is also possible to search for character patterns in the file.
</p><p>By default, <span class="monospaced">less</span> displays the contents of the file to the <a href="Standard_output" class="mw-redirect" title="Standard output">standard output</a> (one screen at a time). If the file name argument is omitted, it displays the contents from <a href="Standard_input" class="mw-redirect" title="Standard input">standard input</a> (usually the output of another command through a <a href="Pipeline_(Unix)" title="Pipeline (Unix)">pipe</a>). If the output is redirected to anything other than a <a href="Computer_terminal" title="Computer terminal">terminal</a>, for example a pipe to another command, <span class="monospaced">less</span> behaves like <span class="monospaced"><a href="Cat_(Unix)" title="Cat (Unix)">cat</a></span>.
</p><p>The "lesspipe" extension can automatically determine file types such as <a href="PDF" title="PDF">PDF</a>, multimedia, and <a href="Compressed_archive" class="mw-redirect" title="Compressed archive">compressed archives</a>, and automatically determines which program to launch display the file's information with, such as text from a PDF file, metadata of photos, lists of files in a compressed archive, and content of a single file in a compressed archive.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p><p>The command-<a href="Syntax" title="Syntax">syntax</a> is:
</p>
<pre>less [options] [file_name]...
</pre>
<div class="mw-heading mw-heading3"><h3 id="Frequently_used_options">Frequently used options</h3></div>
<ul><li><code>-g</code>: Highlight just the current match of any searched string.</li>
<li><code>-i</code>: Search case-insensitively.</li>
<li><code>-m</code>: Show more detailed prompt, including file position.</li>
<li><code>-N</code>: Show line numbers (useful for viewing <a href="Source_code" title="Source code">source code</a>).</li>
<li><code>-x3</code>: Set tabstops (the number of columns per hard tab character) to the specified number (3, in this example) (useful for viewing <a href="Source_code" title="Source code">source code</a>).</li>
<li><code>-S</code>: Disable line wrapping ("chop long lines"). Long lines can be seen by side-scrolling.</li>
<li><code>-X</code>: Leave file contents on screen when less exits.</li>
<li><code>-?</code>: Show help.</li>
<li><code>--follow-name</code>: Follow mode, for log files that get replaced while being viewed.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Frequently_used_commands">Frequently used commands</h3></div>
<table class="wikitable" border="1">
<tbody><tr>
<th>Key
</th>
<th>Command
</th></tr>
<tr>
<th><style data-mw-deduplicate="TemplateStyles:r1249182868">
/* start https://en.wikipedia.org/ */
.mw-parser-output .keyboard-key{border:1px solid #aaa;border-radius:0.2em;box-shadow:0.1em 0.1em 0.2em rgba(0,0,0,0.1);background-color:var(--background-color-neutral-subtle,#f8f9fa);background-image:linear-gradient(to bottom,var(--background-color-neutral,#eaecf0),var(--background-color-neutral-subtle,#f8f9fa),var(--background-color-neutral,#eaecf0));color:var(--color-base,#202122);padding:0.1em 0.3em;font-family:inherit;font-size:0.85em}
/* end https://en.wikipedia.org/ */
</style><kbd class="keyboard-key nowrap">Space bar</kbd>
</th>
<td>Next Page
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">d</kbd>
</th>
<td>Next half Page
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">b</kbd>
</th>
<td>Previous Page
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">u</kbd>
</th>
<td>Previous half Page
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">v</kbd>
</th>
<td>Edit Content
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">j</kbd> <span style="font-weight: normal;">or</span> <kbd class="keyboard-key nowrap">↵ Enter</kbd>
</th>
<td>Next Line
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">k</kbd>
</th>
<td>Previous Line
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">Home</kbd>
</th>
<td>Top of file
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">End</kbd>
</th>
<td>End of file
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">F</kbd>
</th>
<td>Follow Mode (for expanding logs or pipes). Interrupt (or from v581 <kbd class="keyboard-key nowrap">Ctrl</kbd>+<kbd class="keyboard-key nowrap">X</kbd><sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>) to abort.
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">g</kbd> <span style="font-weight: normal;">or</span> <kbd class="keyboard-key nowrap"><</kbd>
</th>
<td>First Line
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">G</kbd> <span style="font-weight: normal;">or</span> <kbd class="keyboard-key nowrap">></kbd>
</th>
<td>Last Line
</td></tr>
<tr>
<th><code><span class="nowrap">⟨n⟩</span></code><kbd class="keyboard-key nowrap">G</kbd>
</th>
<td>Line <code><span class="nowrap">⟨n⟩</span></code>
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">/</kbd><code><span class="nowrap">⟨text⟩</span></code>
</th>
<td>Forward Search for <code><span class="nowrap">⟨text⟩</span></code>. Text is interpreted as a <a href="Regular_expression" title="Regular expression">regex</a>.
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">?</kbd><code><span class="nowrap">⟨text⟩</span></code>
</th>
<td>Backward Search like <kbd class="keyboard-key nowrap">/</kbd>
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">&</kbd><code><span class="nowrap">⟨text⟩</span></code>
</th>
<td><a href="Grep" title="Grep">grep</a> like filter
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">n</kbd>
</th>
<td>Next Search Match
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">N</kbd>
</th>
<td>Previous Search Match
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">Esc</kbd><kbd class="keyboard-key nowrap">u</kbd>
</th>
<td>Turn off Match Highlighting (see <code>-g</code> command line option)
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">-</kbd><code><span class="nowrap">⟨c⟩</span></code>
</th>
<td>Toggle option <code><span class="nowrap">⟨c⟩</span></code>, e.g., <kbd class="keyboard-key nowrap">-</kbd><kbd class="keyboard-key nowrap">i</kbd> toggles option to match case in searches
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">m</kbd><code><span class="nowrap">⟨c⟩</span></code>
</th>
<td>Set Mark <code><span class="nowrap">⟨c⟩</span></code>
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">'</kbd><code><span class="nowrap">⟨c⟩</span></code>
</th>
<td>Go to Mark <code><span class="nowrap">⟨c⟩</span></code>
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">=</kbd> <span style="font-weight: normal;">or</span> <kbd class="keyboard-key nowrap">Ctrl</kbd>+<kbd class="keyboard-key nowrap">G</kbd>
</th>
<td>File information
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">:</kbd><kbd class="keyboard-key nowrap">n</kbd>
</th>
<td>Next file
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">:</kbd><kbd class="keyboard-key nowrap">p</kbd>
</th>
<td>Previous file
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">h</kbd>
</th>
<td>Help. This is presented with <code>less</code>, <kbd class="keyboard-key nowrap">q</kbd> to quit.
</td></tr>
<tr>
<th><kbd class="keyboard-key nowrap">q</kbd>
</th>
<td>Quit
</td></tr></tbody></table>
<div class="mw-heading mw-heading2"><h2 id="Examples">Examples</h2></div>
<div class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr"><pre>less<span class="w"> </span>-M<span class="w"> </span>readme.txt<span class="w"> </span><span class="c1"># Read "readme.txt"</span>
less<span class="w"> </span>+F<span class="w"> </span>/var/log/mail.log<span class="w"> </span><span class="c1"># Follow mode for log</span>
file<span class="w"> </span>*<span class="w"> </span><span class="p">|</span><span class="w"> </span>less<span class="w"> </span><span class="c1"># Easier file analysis</span>
less<span class="w"> </span>-I<span class="w"> </span>-p<span class="w"> </span>void<span class="w"> </span>*.c<span class="w"> </span><span class="c1"># Case insensitive search for "void" in all .c files</span>
</pre></div>
<div class="mw-heading mw-heading2"><h2 id="Memory_considerations">Memory considerations</h2></div>
<p>The <code>--buffers=n</code> and <code>--auto-buffers</code> options control how much memory less may use to buffer inputs. This is most relevant when less is directly accessing a named file that is modified or deleted while less is still running, and when less is receiving data from a pipe and the data can not be randomly accessed or regenerated. On the other hand, unlimited buffering means that less will request as much memory as it is fed data, which could drive the system into using virtual memory and swapping a lot of data between RAM and disks (dramatically slowing system performance for most applications on the host), or even further into memory exhaustion where any application on the host requesting memory may have that request denied, or may crash when attempting to access memory that the OS promised but can't find when the application actually attempts to use it and a page-fault occurs.
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="More_(command)" title="More (command)">more (command)</a></li>
<li><a href="Most_(Unix)" title="Most (Unix)">most (Unix)</a></li>
<li><a href="Pg_(Unix)" title="Pg (Unix)">pg (Unix)</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */
.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}
/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */
.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}
/* end https://en.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20230207045624/https://groups.google.com/g/net.sources/c/GikfOBWCl0s/m/agdI4hW2ix8J">"less, a paginator"</a>. Archived from <a rel="nofollow" class="external text" href="https://groups.google.com/d/msg/net.sources/GikfOBWCl0s/agdI4hW2ix8J">the original</a> on February 7, 2023.</cite></span>
</li>
<li id="cite_note-wikidata-5ceee3d92f809f3fdf390dc253b0ffdb676639f1-v20-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-wikidata-5ceee3d92f809f3fdf390dc253b0ffdb676639f1-v20_2-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.mail-archive.com/less-announce@greenwoodsoftware.com/msg00077.html">"[less-announce] less-679 released for general use"</a>. 19 June 2025<span class="reference-accessdate">. Retrieved <span class="nowrap">20 June</span> 2025</span>.</cite></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.greenwoodsoftware.com/less/faq.html#unix">"Less FAQ"</a>.</cite></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://manpages.debian.org/bullseye/less/lesspipe.1.en.html">"lesspipe(1) — less — Debian bullseye — Debian Manpages"</a>.</cite></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://man.archlinux.org/man/lesspipe.1">"lesspipe(1) — Arch manual pages"</a>.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.greenwoodsoftware.com/less/news.581.html">"Less version 581"</a>. Greenwood Software. 7 April 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">31 July</span> 2023</span>.</cite></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<ul><li><a rel="nofollow" class="external text" href="http://www.freebsd.org/cgi/man.cgi?query=less&apropos=0&sektion=0&arch=default&format=html">Manual page on freebsd.org</a></li>
<li><a rel="nofollow" class="external text" href="https://man7.org/linux/man-pages/man1/less.1.html">Manual page on man7.org</a></li>
<li><a rel="nofollow" class="external text" href="https://directory.fsf.org/wiki/Less">Entry in Free Software Directory</a></li></ul>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}
/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1236075235">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}
/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox" aria-labelledby="Unix_command-line_interface_programs_and_shell_builtins541" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div id="Unix_command-line_interface_programs_and_shell_builtins541" style="font-size:114%;margin:0 4em"><a href="Unix" title="Unix">Unix</a> <a href="Command-line_interface" title="Command-line interface">command-line interface</a> programs and <a href="Shell_builtin" title="Shell builtin">shell builtins</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">File system</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Cat_(Unix)" title="Cat (Unix)">cat</a></li>
<li><a href="Chattr" title="Chattr">chattr</a></li>
<li><a href="Chmod" title="Chmod">chmod</a></li>
<li><a href="Chown" title="Chown">chown</a></li>
<li><a href="Chgrp" title="Chgrp">chgrp</a></li>
<li><a href="Cksum" title="Cksum">cksum</a></li>
<li><a href="Cmp_(Unix)" title="Cmp (Unix)">cmp</a></li>
<li><a href="Cp_(Unix)" title="Cp (Unix)">cp</a></li>
<li><a href="Dd_(Unix)" title="Dd (Unix)">dd</a></li>
<li><a href="Du_(Unix)" title="Du (Unix)">du</a></li>
<li><a href="Df_(Unix)" title="Df (Unix)">df</a></li>
<li><a href="File_(command)" title="File (command)">file</a></li>
<li><a href="Fuser_(Unix)" title="Fuser (Unix)">fuser</a></li>
<li><a href="Ln_(Unix)" title="Ln (Unix)">ln</a></li>
<li><a href="Ls" title="Ls">ls</a></li>
<li><a href="Mkdir" title="Mkdir">mkdir</a></li>
<li><a href="Mv_(Unix)" title="Mv (Unix)">mv</a></li>
<li><a href="Pax_(command)" title="Pax (command)">pax</a></li>
<li><a href="Pwd" title="Pwd">pwd</a></li>
<li><a href="Rm_(Unix)" title="Rm (Unix)">rm</a></li>
<li><a href="Rmdir" title="Rmdir">rmdir</a></li>
<li><a href="Split_(Unix)" title="Split (Unix)">split</a></li>
<li><a href="Tee_(command)" title="Tee (command)">tee</a></li>
<li><a href="Touch_(command)" title="Touch (command)">touch</a></li>
<li><a href="Type_(Unix)" title="Type (Unix)">type</a></li>
<li><a href="Umask" title="Umask">umask</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Processes</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="At_(command)" title="At (command)">at</a></li>
<li><a href="Job_control_(Unix)#Commands" title="Job control (Unix)">bg</a></li>
<li><a href="Cron" title="Cron">crontab</a></li>
<li><a href="Job_control_(Unix)#Commands" title="Job control (Unix)">fg</a></li>
<li><a href="Kill_(command)" title="Kill (command)">kill</a></li>
<li><a href="Nice_(Unix)" title="Nice (Unix)">nice</a></li>
<li><a href="Ps_(Unix)" title="Ps (Unix)">ps</a></li>
<li><a href="Time_(Unix)" title="Time (Unix)">time</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">User environment</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Env" title="Env">env</a></li>
<li><a href="Exit_(command)" title="Exit (command)">exit</a></li>
<li><a href="Logname" title="Logname">logname</a></li>
<li><a href="Mesg" title="Mesg">mesg</a></li>
<li><a href="Talk_(software)" title="Talk (software)">talk</a></li>
<li><a href="Tput" title="Tput">tput</a></li>
<li><a href="Uname" title="Uname">uname</a></li>
<li><a href="Who_(Unix)" title="Who (Unix)">who</a></li>
<li><a href="Write_(Unix)" title="Write (Unix)">write</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Text processing</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="AWK" title="AWK">awk</a></li>
<li><a href="Basename" title="Basename">basename</a></li>
<li><a href="Comm" title="Comm">comm</a></li>
<li><a href="Csplit" title="Csplit">csplit</a></li>
<li><a href="Cut_(Unix)" title="Cut (Unix)">cut</a></li>
<li><a href="Diff" title="Diff">diff</a></li>
<li><a href="Dirname" title="Dirname">dirname</a></li>
<li><a href="Ed_(text_editor)" class="mw-redirect" title="Ed (text editor)">ed</a></li>
<li><a href="Ex_(text_editor)" title="Ex (text editor)">ex</a></li>
<li><a href="Fold_(Unix)" title="Fold (Unix)">fold</a></li>
<li><a href="Head_(Unix)" title="Head (Unix)">head</a></li>
<li><a href="Iconv" title="Iconv">iconv</a></li>
<li><a href="Join_(Unix)" title="Join (Unix)">join</a></li>
<li><a href="M4_(computer_language)" title="M4 (computer language)">m4</a></li>
<li><a href="More_(command)" title="More (command)">more</a></li>
<li><a href="Nl_(Unix)" title="Nl (Unix)">nl</a></li>
<li><a href="Paste_(Unix)" title="Paste (Unix)">paste</a></li>
<li><a href="Patch_(Unix)" title="Patch (Unix)">patch</a></li>
<li><a href="Printf_(Unix)" title="Printf (Unix)">printf</a></li>
<li><a href="Read_(Unix)" title="Read (Unix)">read</a></li>
<li><a href="Sed" title="Sed">sed</a></li>
<li><a href="Sort_(Unix)" title="Sort (Unix)">sort</a></li>
<li><a href="Strings_(Unix)" title="Strings (Unix)">strings</a></li>
<li><a href="Tail_(Unix)" title="Tail (Unix)">tail</a></li>
<li><a href="Tr_(Unix)" title="Tr (Unix)">tr</a></li>
<li><a href="Troff" title="Troff">troff</a></li>
<li><a href="Uniq" title="Uniq">uniq</a></li>
<li><a href="Vi_(text_editor)" title="Vi (text editor)">vi</a></li>
<li><a href="Wc_(Unix)" title="Wc (Unix)">wc</a></li>
<li><a href="Xargs" title="Xargs">xargs</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Shell_builtin" title="Shell builtin">Shell builtins</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Alias_(command)" title="Alias (command)">alias</a></li>
<li><a href="Cd_(command)" title="Cd (command)">cd</a></li>
<li><a href="Echo_(command)" title="Echo (command)">echo</a></li>
<li><a href="Test_(Unix)" title="Test (Unix)">test</a></li>
<li><a href="Environment_variable#unset_command" title="Environment variable">unset</a></li>
<li><a href="Wait_(command)" title="Wait (command)">wait</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Searching</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Find_(Unix)" title="Find (Unix)">find</a></li>
<li><a href="Grep" title="Grep">grep</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Documentation</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Man_page" title="Man page">man</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Software_development" title="Software development">Software development</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Ar_(Unix)" title="Ar (Unix)">ar</a></li>
<li><a href="Ctags" title="Ctags">ctags</a></li>
<li><a href="Lex_(software)" title="Lex (software)">lex</a></li>
<li><a href="Make_(software)" title="Make (software)">make</a></li>
<li><a href="Nm_(Unix)" title="Nm (Unix)">nm</a></li>
<li><a href="Strip_(Unix)" title="Strip (Unix)">strip</a></li>
<li><a href="Yacc" title="Yacc">yacc</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Miscellaneous</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Bc_(programming_language)" title="Bc (programming language)">bc</a></li>
<li><a href="Cal_(command)" title="Cal (command)">cal</a></li>
<li><a href="Expr" title="Expr">expr</a></li>
<li><a href="System_V_printing_system" title="System V printing system">lp</a></li>
<li><a href="Od_(Unix)" title="Od (Unix)">od</a></li>
<li><a href="Sleep_(command)" title="Sleep (command)">sleep</a></li>
<li><a href="True_and_false_(commands)" title="True and false (commands)">true and false</a></li></ul>
</div></td></tr><tr><td class="navbox-abovebelow hlist" colspan="2"><div>
<ul><li><span class="noviewer" typeof="mw:File"><span title="Category"></span></span> <b>Categories</b>
<ul><li>Standard Unix programs</li>
<li>Unix SUS2008 utilities</li></ul></li>
<li><span class="noviewer" typeof="mw:File"><span title="List-Class article"></span></span> <b><a href="List_of_POSIX_commands" title="List of POSIX commands">List</a></b></li></ul>
</div></td></tr></tbody></table></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-05-05" href="https://en.wikipedia.org/wiki/?title=Less_(Unix)&oldid=1288841616">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
</body></html>